package com.ks.core.framework.cpsupload.demos.pay1;

import com.ks.core.framework.cpsupload.demos.pay.PaymentChannel;
import com.ks.core.framework.cpsupload.demos.pay.PaymentOperation;

// 查询参数基类
public abstract class BaseQueryParams extends BasePaymentParams implements QueryParams {
    protected String transactionId;
    
    public BaseQueryParams(PaymentChannel channel) {
        super(channel, PaymentOperation.QUERY);
    }

    @Override
    public void validate() {
        if (transactionId == null || transactionId.isEmpty()) {
            throw new IllegalArgumentException("交易号必填");
        }
    }
}